package Java.BlackHorse.Map.TreeMap;

import java.util.TreeMap;

public class TreeMapDemo2{
    public static void main(String[] args) {
        TreeMap<Student,String> tm = new TreeMap<>();

        Student s1 = new Student("张三",22);
        Student s2 = new Student("李四",25);
        Student s3 = new Student("王五",23);

        tm.put(s1,"山东");
        tm.put(s2,"河南");
        tm.put(s3,"四川");

        System.out.println(tm);
    }
}